Compute Fourier Series Representation Of A Function